import { defineComponent } from "vue"
import { useStore } from "vuex"

export default defineComponent({
  setup() {
    const store = useStore()

    const onButtonClick = () => {
      store.state.count++
    }

    return () => (
      <>
        <div class="home">
          <label>{store.state.count}</label>
          <button onClick={onButtonClick}>点击加一</button>
        </div>
      </>
    )
  }
})
